package cn.virens.database.serviceimpl.platform.common;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;

public class TableInfoUtil {
	public static String toTableName(String _table) {
		return StrUtil.upperFirst(StrUtil.toCamelCase(_table));
	}

	public static String toIdentity(String _package) {
		return StrUtil.replace(_package, ".", ":");
	}

	public static String toPackage(String _package) {
		return _package;
	}

	public static String toTable(String _table) {
		return _table;
	}

	public static String toName(String _name) {
		return _name;
	}

	public static String toPath(String _package) {
		return StrUtil.replace(_package, ".", "/");
	}

	public static String toKey(String _table) {
		return StrUtil.subAfter(_table, "_", true);
	}

	public static String toDate() {
		return DateUtil.now();
	}
}
